import { request } from '../utils/request';

export async function fetchHealthInfo(params) {
    return request({
        url: '/elderly/queryall_by_id',
        method: 'POST',
        data: {
            ...params
        }
    })
}

export async function fetchStepData(params) {
    return request({
        url: '/elderly/querystep_by_id',
        method: 'POST',
        data: {
            ...params
        }
    })
}
export async function fetchRateData(params) {
    return request({
        url: '/elderly/queryheart_by_id',
        method: 'POST',
        data: {
            ...params
        }
    })
}
export async function fetchTempData(params) {
    return request({
        url: '/elderly/querytr_by_id',
        method: 'POST',
        data: {
            ...params
        }
    })
}
export async function fetchOxygenData(params) {
    return request({
        url: '/elderly/querybo_by_id',
        method: 'POST',
        data: {
            ...params
        }
    })
}
export async function fetchBpData(params) {
    return request({
        url: '/elderly/querybp_by_id',
        method: 'POST',
        data: {
            ...params
        }
    })
}

export async function fetchSleepData(params) {
    return request({
        url: '/elderly/querysm_by_id',
        method: 'POST',
        data: {
            ...params
        }
    })
}
